package avicit.bdp.dds.dao.mapper;

import avicit.bdp.common.base.BaseDAO;
import avicit.bdp.dds.dao.entity.LineageFieldDTO;
import avicit.bdp.dds.dao.entity.ProcessDefinition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 数据血缘字段关系数据操作接口
 *
 */
@Repository
public interface LineageFieldDAO extends BaseDAO<LineageFieldDTO>{

    /**
     * 批量插入
     * @param lineageFieldList
     * @return
     */
    int batchInsert(@Param("lineageFieldList") List<LineageFieldDTO> lineageFieldList);

    List<LineageFieldDTO> selectAllLineageFieldByTableIds(@Param("tableIdList")  List<String> tableIdList);

    List<ProcessDefinition> getProcessDefinitionList(@Param("idList")  List<String> idList);

}
